<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/**
 * Football Referees extension for Joomleague
 * @version $Id:playersranking.php 79 2008-02-12 15:58:00Z julien.vonthron $
 * @package JlgFootballReferees
 * @copyright Copyright (C) 2007 Julien Vonthron. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * JlgFootballReferees is free software and parts of it may contain or be derived from the
 * GNU General Public License or other free or open source software licenses.
 * 
 * contact: julien.vonthron[at]gmail.com 
 *   
 * Joomleague is a League Management and Prediction Game for Joomla!
 * Homepage: http://www.joomleague.de 
 *  
 */
?>

<?php

class REHelper {
	
	function getEventType($eventtypeId)
	{
		global $database;
		static $events = array();
		
		if (!count($events)) 
		{
		  $query = ' SELECT et.* FROM #__joomleague_eventtypes as et ';
            
      $database->setQuery($query);
      $events = $database->loadObjectList('id');
		}
		return @$events[$eventtypeId];
	}	
}
?>